<?php
/**
 * Created by PhpStorm.
 * User: colin
 * Date: 15-3-29
 * Time: 23:50
 */

namespace common\models\myhtsq;

use common\models\BaseModel;

class SpecialApprovalInvoiceModel extends BaseModel
{
    public $special_approval_invoice_id;
    public $invoice_no;
    public $category;
    public $promise_fulfil_time;
    public $promise_fulfil_principle;
    public $actual_fulfil_time;
    public $comment;
    public $created_on;
    public $created_by;
    public $modified_on;
    public $modified_by;
    
    public $principal_name;




    public function __construct($config = [])
    {
		parent::__construct ( $config );
	}

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['special_approval_invoice_id'], 'safe'],
            [['promise_fulfil_time', 'actual_fulfil_time', 'created_on', 'modified_on'], 'safe'],
            [['comment'], 'string'],
            [['special_approval_invoice_id', 'promise_fulfil_principle', 'created_by', 'modified_by'], 'string', 'max' => 36],
            [['invoice_no'], 'string', 'max' => 50],
            [['category'], 'string', 'max' => 128]
        ];
    }
    
}